package com.example.kspo_enjoysports.vo;

import android.os.Parcel;
import android.os.Parcelable;

public class SearchResultVO implements Parcelable{

	public String title;
	public String address;
	public String description;
	public String mapx;
	public String mapy;
	
	public SearchResultVO(){
		
	}
	public SearchResultVO(String title,String address,String description,String mapx,String mapy)
	{
		this.title = title;
		this.address = address;
		this.description = description;
		this.mapx = mapx;
		this.mapy = mapy;
	}
//	public SearchResultVO(String title,String address,String description,double mapx,double mapy)
//	{
//		this.title = title;
//		this.address = address;
//		this.description = description;
//		this.mapx = mapx;
//		this.mapy = mapy;
//	}
	
	public static final Parcelable.Creator<SearchResultVO> CREATOR = new Parcelable.Creator<SearchResultVO>() {
		 
        public SearchResultVO createFromParcel(Parcel in) {
 
        	SearchResultVO vo = new SearchResultVO();
            vo.title          = in.readString();
            vo.address         = in.readString();
            vo.mapx     = in.readString();
            vo.mapy        = in.readString();
            vo.description = in.readString();
//            vo.mapx     = in.readDouble();
//            vo.mapy        = in.readDouble();
 
            return vo;
        }
 
        public SearchResultVO[] newArray(int size) {
            return new SearchResultVO[size];
        }
    };
	
	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel par, int flag) {
		// TODO Auto-generated method stub
		par.writeString(title);
		par.writeString(address);
		par.writeString(mapx);
		par.writeString(mapy);
		par.writeString(description);
//		par.writeDouble(mapx);
//		par.writeDouble(mapy);
	}
	
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getMapx() {
		return mapx;
	}

	public void setMapx(String mapx) {
		this.mapx = mapx;
	}

	public String getMapy() {
		return mapy;
	}

	public void setMapy(String mapy) {
		this.mapy = mapy;
	}
	
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	
	

	
}
